home *** CD-ROM | disk | FTP | other *** search
- #
- # Zustands-▄berwachungs-Script
- # State Watch Script
- #
- # Missile
- #
- # created: 15-Jun-2000 Bernd
- # 09-Aug-2000 floh Missile-Aufschlag-Explosion (.iscollided)
- # 16-Jan-2002 peter Swarm-Missile spezifisches Zeug
- #
- # (C) COPYRIGHT 2000 RADONLABS GMBH
- #
-
- # --------------------------------------------------------
- # R A K E T E N
- # --------------------------------------------------------
- proc swarmmissilewatch_normal {} {
- if {[.iscollided] == "true"} {
- .announcestate explode
- } elseif {[.isstatetimeover] == "true"} {
- .announcestate attack
- } elseif {[.hastargetchanged] == "true"} {
- .selectnewcommandlist /commandlists/missile/goto
- }
- }
-
- proc missilewatch_normal {} {
-
- if {[.iscollided] == "true"} {
- .announcestate explode
- } elseif {[.isstatetimeover] == "true"} {
- .announcestate burn
- } elseif {[.hastargetchanged] == "true"} {
- .selectnewcommandlist /commandlists/missile/goto
- }
- }
-
- proc missilewatch_explode {} {
-
- if {[.isanimfinished] == "true"} {
- .setremoveable true
- }
- }
-
- proc missilewatch_burn {} {
-
- if {[.isanimfinished] == "true"} {
- .setremoveable true
- }
- }
-
- proc missilewatch_cinematic {} {
-
- # empty
- }
-
- #-------------------------------------------------------------------------------
- # Spell-Action-Routinen
- # =====================
- # Eigentlich nicht genau der richtige Platz dafuer, ein richtiger
- # "Spellaction" Objekt Prototyp waere besser, der letztenendes eine
- # Missile erzeugt.
- #-------------------------------------------------------------------------------
-
- #-------------------------------------------------------------------------------
- # summon_3dd
- # ==========
- # Summon 3 Doppeldecker.
- #-------------------------------------------------------------------------------
- proc summon_3dd {} {
-
- set clan [/world.getuserclan]
- set maennel [$clan.getmaennel]
-
- if {"null" != $maennel} {
-
- set obj [$clan.createvehicle g_scout01]
- $obj.alignvehicle $maennel -15 5 -30 0 10 0
-
- set obj [$clan.createvehicle g_scout01]
- $obj.alignvehicle $maennel +15 5 -30 0 0 0
-
- set obj [$clan.createvehicle g_scout01]
- $obj.alignvehicle $maennel 0 5 -40 0 -10 0
- }
- }
-
-
- #-------------------------------------------------------------------------------
- # summon_1_g_scout01
- # ==========
- # Summon 1 g_scout
- #-------------------------------------------------------------------------------
- proc summon_1_g_scout01 {} {
-
- set clan [/world.getuserclan]
- set maennel [$clan.getmaennel]
-
- if {"null" != $maennel} {
-
- set obj [$clan.createvehicle g_scout01]
- $obj.alignvehicle $maennel 0 10 -20 0 0 0
- }
- }
-
-
- #-------------------------------------------------------------------------------
- # summon_1_p_shark_tut
- # ==========
- # 1 tutorial-shark heraufbeschw÷ren
- #-------------------------------------------------------------------------------
- proc summon_p_shark_tut {} {
-
- set clan [/world.getuserclan]
- set maennel [$clan.getmaennel]
-
- if {"null" != $maennel} {
-
- set obj [$clan.createvehicle p_shark_tut]
- $obj.alignvehicle $maennel 0 10 -20 0 0 0
- }
- }
-